﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Details.aspx.vb" Inherits="Korean_Food.Details" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
        DataSourceID="DetailsSqlDataSource1">
        <Columns>
            <asp:BoundField DataField="Restaurant_Name" HeaderText="Restaurant_Name" 
                SortExpression="Restaurant_Name" />
            <asp:BoundField DataField="Post_Code" HeaderText="Post_Code" 
                SortExpression="Post_Code" />
            <asp:BoundField DataField="Restaurant_Menu" HeaderText="Restaurant_Menu" 
                SortExpression="Restaurant_Menu" />
            <asp:BoundField DataField="Michelin_Stars" HeaderText="Michelin_Stars" 
                SortExpression="Michelin_Stars" />
            <asp:ImageField DataAlternateTextField="Restaurant_Name" 
                DataImageUrlField="Restaurant_Picture">
                <ControlStyle CssClass="restaurantPicture" />
            </asp:ImageField>
        </Columns>
    </asp:GridView>
    <asp:SqlDataSource ID="DetailsSqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:RestaurantConnectionString %>" 
        ProviderName="<%$ ConnectionStrings:RestaurantConnectionString.ProviderName %>" 
        SelectCommand="SELECT [Restaurant Name] AS Restaurant_Name, [Post Code] AS Post_Code, [Restaurant Menu] AS Restaurant_Menu, [Michelin Stars] AS Michelin_Stars, [Restaurant Picture] AS Restaurant_Picture FROM [Restuarant] WHERE ([ID] = ?)">
        <SelectParameters>
            <asp:QueryStringParameter DefaultValue="id" Name="ID" QueryStringField="id" 
                Type="Int32" />
        </SelectParameters>
    </asp:SqlDataSource>
</asp:Content>
